﻿#include "connectresultevent.h"
QEvent::Type ConnectResultEvent::mEventType = QEvent::None;



ConnectResultEvent::ConnectResultEvent(std::string deviceName):QEvent(eventType())
{
   mDeviceName = deviceName;
}

ConnectResultEvent::~ConnectResultEvent()
{

}

QEvent::Type ConnectResultEvent::eventType()
{
    if (mEventType == QEvent::None) {
        mEventType = (QEvent::Type)QEvent::registerEventType();
    }
    return mEventType;
}

std::string ConnectResultEvent::getDeviceName()
{
   return mDeviceName;
}
